$(function() {
	var $left_li = $(".left-list").find("li");
	var content_h = $(window).height() - 120;
	$(".left-list,.right-list").height(content_h);
	$(".cancle").on("touchstart mousedown", function() {
		$(this).prev("input").blur();
	})
	$left_li.on("touchstart mousedown", function() {
		var $this = $(this);
		$this.addClass("active").siblings().removeClass("active");
		var index = $(this).index();
		$(".right-list-item").eq(index).addClass("active").siblings(".right-list-item").removeClass("active");
	});
	$('.item').on('click', function() {
		//alert('ok');
        $('#newsDetail .um-content').empty();
        $('#newsDetail .um-content').scrollTop(0);
		$('#gw .um-empty').click();
		var $div = $(' <div class="news-container"> <img src="img/p1.jpg" /> <h3>精品团购商品</h3> <div class="news-head f12"> <div class="news-time fl um-red f14" >￥8.5</div>&nbsp;</div> <img src="img/p2.jpg" /><img src="img/p3.jpg" /><img src="img/p4.jpg" /><img src="img/p5.jpg" /><img src="img/p6.jpg" /></div>');
        $('#newsDetail .um-content').append($div);

	});

});

/*document.body.addEventListener('touchstart', function() {

 });*/
